/*
** Lua core detector,also do some compat
** The MIT License (MIT)
** Copyright (c) <2016> <avaicode>
*/

#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>

#ifdef __cplusplus
}
#endif

#if LUA_VERSION_NUM < 503
    #include "compat-5.3.h"
#endif

#if LUA_VERSION_NUM < 501
    #error Lua < 5.1 not supported
#endif
